package com.newer.service.sys.iter;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.newer.pojo.sys.Organization;
import com.newer.pojo.sys.Staff;
import com.newer.pojo.sys.StaffExample;
import com.newer.utils.sys.BootstrapDataTable;
import com.newer.utils.sys.Conditions;
import com.newer.utils.sys.MsgUtil;

public interface StaffService {
	int countByExample(StaffExample example);

	int deleteByExample(StaffExample example);

	int deleteByPrimaryKey(Integer id);

	int insert(Staff record);

	int insertSelective(Staff record);
	
	//批量删除
	int deleteStaffByIds(String ids);

	List<Staff> selectByExample(StaffExample example);
	
	List<Organization> selectAllOrganization();
	
	BootstrapDataTable selectStaffByExample(BootstrapDataTable dataTable,Conditions conditions);
	
	MsgUtil deleteStaff(Staff staff);

	Staff selectByPrimaryKey(Integer id);

	int updateByExampleSelective(@Param("record") Staff record, @Param("example") StaffExample example);

	int updateByExample(@Param("record") Staff record, @Param("example") StaffExample example);

	int updateByPrimaryKeySelective(Staff record);

	int updateByPrimaryKey(Staff record);
	
	
}
